import Vue from 'vue'
import Router from 'vue-router'
import { menuList } from './menu'

Vue.use(Router)

export default new Router({
    routes: [
		{
			path: '/',
			name: 'index',
			redirect: '/first_page',
			component: () => import('@/App.vue'),
			children: [{
				path: '/home',
				component: () => import('@/views/Home'),
				children: [{
					path: '/first_page',
					component: () => import('@/views/FirstPage'),
					meta: {
						title: '首页'
					}
				},
				...menuList
				]
			}]
		}
	]
})
